/*
 * BSM6.0
 *
 * Copyright 2012-2013 (C) SINODATA CO., LTD. All Rights Reserved.
 */
package com.sinodata.bsm.cicp.collector.common;

import org.apache.commons.httpclient.HttpClient;

/**
 * <p>
 * Description: 
 * </p>
 *
 * @author wangyilin
 * @version 1.0

 * <p>
 * History: 
 *
 * Date                     Author         Version     Description
 * ---------------------------------------------------------------------------------
 * Dec 19, 2012 5:44:26 PM          wangyilin        1.0         To create
 * </p>
 *
 * @since 
 * @see     
 */
public abstract class AbstractHttpMock {
    protected HttpClient client = new HttpClient();

    protected abstract void execute() throws Exception;

    protected long respondTime;
    protected String returnVal;
    protected String errorMsg;

    private String parameters = null;

    public String getParameters() {
        return parameters;
    }

    public void setParameters(String parameters) {
        this.parameters = parameters;
    }

    public HttpClient getClient() {
        return client;
    }

    public long getRespondTime() {
        return respondTime;
    }

    public String getReturnVal() {
        return returnVal;
    }

    public String getErrorMsg() {
        return errorMsg;
    }
}
